package com.kaibes.platform.member.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.kaibes.platform.member.db.MemberVip;
import com.kaibes.platform.member.db.MemberVipService;

@Component
public class MemberVipUtils {

    @Autowired
    private MemberVipService memberVipService;
    
    public MemberVip getIdNameLevel(Short id) {
        MemberVip memberVip = memberVipService.getIdNameAndLevelById(id);
        return memberVip;
    }
    
}
